﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;

namespace SJ.Platform.EFCore.Model.ProjectManager
{
    [Table("project_change_info")]
    [Description("项目变更明细表")]
    public partial class ProjectChangeInfo
    {
        /// <summary>
        /// 主键
        /// </summary>
        public string? Id { get; set; }

        /// <summary>
        /// 主记录ID
        /// </summary>
        public string? MId { get; set; }

        /// <summary>
        /// 项目ID
        /// </summary>
        public string? ProjectId { get; set; }

        /// <summary>
        /// 父级需求（新增使用）
        /// </summary>
        public string? PRId { get; set; }

        /// <summary>
        /// 父级需求名称（新增使用）
        /// </summary>
        public string? PRName { get; set; }

        /// <summary>
        /// 需求ID
        /// </summary>
        public string? RId { get; set; }

        /// <summary>
        /// 需求名称
        /// </summary>
        public string? RName { get; set; }

        /// <summary>
        /// 父级需求功能（新增使用）
        /// </summary>
        public string? PFId { get; set; }

        /// <summary>
        /// 父级需求功能名称（新增使用）
        /// </summary>
        public string? PFName { get; set; }

        /// <summary>
        /// 需求功能ID（修正和删除使用）
        /// </summary>
        public string? FId { get; set; }

        /// <summary>
        /// 需求功能名称（修正和删除使用）
        /// </summary>
        public string? FName { get; set; }

        /// <summary>
        /// 父级进度任务ID（新增使用）
        /// </summary>
        public string? PSId { get; set; }

        /// <summary>
        /// 父级进度任务名称（新增使用）
        /// </summary>
        public string? PSName { get; set; }

        /// <summary>
        /// 进度ID
        /// </summary>
        public string? SId { get; set; }

        /// <summary>
        /// 进度计划名称
        /// </summary>
        public string? SName { get; set; }

        /// <summary>
        /// 团队成员记录ID
        /// </summary>
        public string? MemberId { get; set; }

        /// <summary>
        /// 变更类型（1=新增，2=修正，3=删除）
        /// </summary>
        public int? ChangeType { get; set; }

        /// <summary>
        /// 变更内容
        /// </summary>
        public string? Content { get; set; }

        /// <summary>
        /// 开始时间（进度变更）
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束时间（进度变更）
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; }

        /// <summary>
        /// 添加人ID
        /// </summary>
        public string? AddUserId { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// 最后修改人ID
        /// </summary>
        public string? EditUserId { get; set; }
    }
}